package com.amit.struts;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class RegisterAction extends Action {
	
	@Override
	public ActionForward execute(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		String status="home";
		
		RegisterForm rf=(RegisterForm) form;
		System.out.println(rf.getSid());
		System.out.println(rf.getUsername());
		System.out.println(rf.getPassword());
		System.out.println(rf.getEmail());
		System.out.println(rf.getDob());
		System.out.println(rf.getPhone());
		System.out.println(rf.getFee());
		System.out.println(rf.getQuali());
		System.out.println(rf.getGender());
		String c[]=rf.getCourse();
		
		for(int i=0;i<c.length;i++)
		{
			System.out.println(c[i]);
		}
		
		
		
		return mapping.findForward(status);
	}

}
